package com.ecode.ecny.base;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @ClassName ReqHead
 * @Author mjlft
 * @Date 2021/8/12 21:15
 * @Version 1.0
 * @Description 请求头
 */
@Data
public class ReqHead {

    //调用方渠道
    @NotBlank(message = "调用方渠道不能为空")
    @Length(max = 3, message = "调用方渠道最到长度3")
    private String reqSysNo;

    //源请求渠道中类
    @NotBlank(message = "源请求去掉种类不能为空")
    @Length(max = 4, message = "源请求去掉中类长度4")
    private String srcSysNo;

    //源请求渠道大类
    @NotBlank(message = "源请求渠道中类不能为空")
    @Length(max = 3, message = "源请求渠道中类长度3")
    private String srcSys;

    //请求码
    @NotBlank(message = "请求码不能为空")
    @Length(max = 64, message = "请求码长度超64")
    private String reqNo;

    //服务码
    @NotBlank(message = "服务码不能为空")
    private String serviceNo;

    //柜员号
    private String brn;

    //分行号
    private String bankNo;
}
